package com.hh.vietnameseproject.ui.recite

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter
import java.util.ArrayList


class CardViewPagerAdapter(val fm:FragmentManager,var list: ArrayList<CardInfo>):FragmentStatePagerAdapter(fm) {

    override fun getItem(position: Int): Fragment {
        return ReciteCardFragment.newInstance(list[position],position,list.size)
    }

    override fun getCount() = list.size
    fun next(){


    }
}